package com._21cn.cms.article.web.validator;

import com._21cn.cms.article.entity.Article;
import com._21cn.framework.utils.StringUtil;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

@Component("articleValidator")
public class ArticleValidator implements Validator {

    public boolean supports(Class<?> clazz) {
        return Article.class.equals( clazz );
    }

    public void validate(Object target, Errors errors) {
        Article obj = (Article)target;
        //TODO
    }
}